import fetch from '@/utils/fetch';

export const listTextGroup = (data) => {
  return fetch({
    url: '/web-admin/imagesText/listTextGroup',
    method: 'POST',
    data,
  });
};

export const pageUserListText = (data) => {
  return fetch({
    url: '/web-admin/imagesText/pageUserListText',
    method: 'POST',
    data,
  });
};

export const createTextGroup = (data) => {
  return fetch({
    url: '/web-admin/imagesText/createTextGroup',
    method: 'POST',
    data,
  });
};

export const editeTextGroup = (data) => {
  return fetch({
    url: '/web-admin/imagesText/editeTextGroup',
    method: 'POST',
    data,
  });
};

export const delTextGroup = (data) => {
  return fetch({
    url: '/web-admin/imagesText/delTextGroup',
    method: 'POST',
    data,
  });
};

export const pageListText = (data) => {
  return fetch({
    url: '/web-admin/imagesText/pageListText',
    method: 'POST',
    data,
  });
};

export const userListTextGroup = (data) => {
  return fetch({
    url: '/web-admin/imagesText/userListTextGroup',
    method: 'POST',
    data,
  });
};

export const createText = (data) => {
  return fetch({
    url: '/web-admin/imagesText/createText',
    method: 'POST',
    data,
  });
};

export const editeText = (data) => {
  return fetch({
    url: '/web-admin/imagesText/editeText',
    method: 'POST',
    data,
  });
};

export const delText = (data) => {
  return fetch({
    url: '/web-admin/imagesText/delText',
    method: 'POST',
    data,
  });
};

export const getMaterialListText = (data) => {
  return fetch({
    url: '/web-admin/imagesText/getMaterialListText',
    method: 'POST',
    data,
  });
};

export const getMaterialListTextGroup = (data) => {
  return fetch({
    url: '/web-admin/imagesText/getMaterialListTextGroup',
    method: 'POST',
    data,
  });
};

export const editeStatus = (data) => {
  return fetch({
    url: '/web-admin/imagesText/editeStatus',
    method: 'POST',
    data,
  });
};
